package cn.sourcespro.spring.entity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * security
 *
 * @author zhanghaowei
 * @date 2018/7/27
 */
@Getter
@Setter
@ToString
@NoArgsConstructor
public class SysAuthorize {
    
    /**
     * url
     */
    private String url;
    
    /**
     * 权限
     */
    private String role;

    public SysAuthorize(Menu menu) {
        this.url = menu.getUrl();
        this.role = menu.getRoles();
    }
}
